import React from 'react';

import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Header from './component/Header'
import { router } from './auth/router';
function App() {
  return (
    <>
      <Router>
        <Header></Header>
        <Routes>
          {router.map((item, index) => {
            return <Route path={item.path} key={index} element={item.component}></Route>
          })}
        </Routes>
      </Router>
    </>
  )
}

export default App;
